package com.yutian.selfservice.search.controller;

import com.yutian.selfservice.search.service.DataInitService;
import com.yutian.selfservice.support.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/service")
public class DataInitController {
    @Autowired
    private DataInitService dataInitService;

    @RequestMapping("/init")
    public Result init(){
        return dataInitService.init();
    }
}
